package multithreading;

public class ticketTesting {
    public static void main(String[] args) {
//        ticketRunnable ticketRunnable = new ticketRunnable();
//        Thread t1 = new Thread(ticketRunnable);
//        Thread t2 = new Thread(ticketRunnable);
//        t1.setName("窗口一");
//        t2.setName("窗口二");
//        t1.start();
//        t2.start();
        lockTicket t1 = new lockTicket("窗口一");
        lockTicket t2 = new lockTicket("窗口二");
        t1.start();
        t2.start();
    }
}
